#!/usr/bin/python

import re
import sys
import os
import urllib

def main():
    for line in open(sys.argv[1]):
        parts = line.split('\t')
        for e in parts:
            if e==parts[-1]:
                print urllib.unquote(e),
            else:
                print e+'\t',

if __name__ == "__main__":
    main()